﻿using AutoMapper;
using BCDto.TMS.RedPacket.RedPacket;
using BCDto.TMS.RedPacket.RedPacketReceive;
using BCDto.TMS.RedPacket.RedPacketStatistics;
using BCDto.TMS.RedPacket.RedPacketSupplement;
using BCDto.TMS.RedPacket.RedPacketType;
using BCEntity.TMS.RedPacket.RedPacket;
using BCEntity.TMS.RedPacket.RedPacketReceive;
using BCEntity.TMS.RedPacket.RedPacketStatistics;
using BCEntity.TMS.RedPacket.RedPacketSupplement;
using BCEntity.TMS.RedPacket.RedPacketType;

namespace BCService.MapperProfiles.TMS.RedPacket
{
    public class RedPacketProfile : Profile
    {
        public RedPacketProfile()
        {
            CreateMap<RedPacketTypeEntity, RedPacketTypeDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<RedPacketTypeDto, RedPacketTypeEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<RedPacketEntity, RedPacketDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<RedPacketDto, RedPacketEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<RedPacketReceiveEntity, RedPacketReceiveDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<RedPacketReceiveDto, RedPacketReceiveEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();


            CreateMap<RedPacketCountEntity, RedPacketCountDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<RedPacketCountDto, RedPacketCountEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<RedPacketSupplementEntity, RedPacketSupplementDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<RedPacketSupplementDto, RedPacketSupplementEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<RedPacketAgentStatisticsEntity, RedPacketAgentStatisticsDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<RedPacketAgentStatisticsDto, RedPacketAgentStatisticsEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            

        }
    }
}
